<HTML>
<HEAD>
<meta charset="UTF-8">
<title>ConfirmPaymentIntentParams.createWithSourceParams - stripe</title>
<link rel="stylesheet" href="../../../style.css">
</HEAD>
<BODY>
<a href="../../index.html">stripe</a>&nbsp;/&nbsp;<a href="../index.html">com.stripe.android.model</a>&nbsp;/&nbsp;<a href="index.html">ConfirmPaymentIntentParams</a>&nbsp;/&nbsp;<a href="./create-with-source-params.html">createWithSourceParams</a><br/>
<br/>
<h1>createWithSourceParams</h1>
<a name="com.stripe.android.model.ConfirmPaymentIntentParams.Companion$createWithSourceParams(com.stripe.android.model.SourceParams, kotlin.String, kotlin.String, kotlin.Boolean, kotlin.collections.Map((kotlin.String, kotlin.Any)), com.stripe.android.model.ConfirmPaymentIntentParams.Shipping)"></a>
<code><span class="identifier">@JvmOverloads</span> <span class="identifier">@JvmStatic</span> <span class="keyword">fun </span><span class="identifier">createWithSourceParams</span><span class="symbol">(</span><span class="identifier" id="com.stripe.android.model.ConfirmPaymentIntentParams.Companion$createWithSourceParams(com.stripe.android.model.SourceParams, kotlin.String, kotlin.String, kotlin.Boolean, kotlin.collections.Map((kotlin.String, kotlin.Any)), com.stripe.android.model.ConfirmPaymentIntentParams.Shipping)/sourceParams">sourceParams</span><span class="symbol">:</span>&nbsp;<a href="../-source-params/index.html"><span class="identifier">SourceParams</span></a><span class="symbol">, </span><span class="identifier" id="com.stripe.android.model.ConfirmPaymentIntentParams.Companion$createWithSourceParams(com.stripe.android.model.SourceParams, kotlin.String, kotlin.String, kotlin.Boolean, kotlin.collections.Map((kotlin.String, kotlin.Any)), com.stripe.android.model.ConfirmPaymentIntentParams.Shipping)/clientSecret">clientSecret</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">, </span><span class="identifier" id="com.stripe.android.model.ConfirmPaymentIntentParams.Companion$createWithSourceParams(com.stripe.android.model.SourceParams, kotlin.String, kotlin.String, kotlin.Boolean, kotlin.collections.Map((kotlin.String, kotlin.Any)), com.stripe.android.model.ConfirmPaymentIntentParams.Shipping)/returnUrl">returnUrl</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">, </span><span class="identifier" id="com.stripe.android.model.ConfirmPaymentIntentParams.Companion$createWithSourceParams(com.stripe.android.model.SourceParams, kotlin.String, kotlin.String, kotlin.Boolean, kotlin.collections.Map((kotlin.String, kotlin.Any)), com.stripe.android.model.ConfirmPaymentIntentParams.Shipping)/savePaymentMethod">savePaymentMethod</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html"><span class="identifier">Boolean</span></a><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;null<span class="symbol">, </span><span class="identifier" id="com.stripe.android.model.ConfirmPaymentIntentParams.Companion$createWithSourceParams(com.stripe.android.model.SourceParams, kotlin.String, kotlin.String, kotlin.Boolean, kotlin.collections.Map((kotlin.String, kotlin.Any)), com.stripe.android.model.ConfirmPaymentIntentParams.Shipping)/extraParams">extraParams</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html"><span class="identifier">Map</span></a><span class="symbol">&lt;</span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">,</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html"><span class="identifier">Any</span></a><span class="symbol">&gt;</span><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;null<span class="symbol">, </span><span class="identifier" id="com.stripe.android.model.ConfirmPaymentIntentParams.Companion$createWithSourceParams(com.stripe.android.model.SourceParams, kotlin.String, kotlin.String, kotlin.Boolean, kotlin.collections.Map((kotlin.String, kotlin.Any)), com.stripe.android.model.ConfirmPaymentIntentParams.Shipping)/shipping">shipping</span><span class="symbol">:</span>&nbsp;<span class="identifier">Shipping</span><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;null<span class="symbol">)</span><span class="symbol">: </span><a href="index.html"><span class="identifier">ConfirmPaymentIntentParams</span></a></code>
<p>Create the parameters necessary for confirming a PaymentIntent with <a href="../-source-params/index.html">SourceParams</a></p>
<h3>Parameters</h3>
<p><a name="sourceParams"></a>
<code>sourceParams</code> - params for the source that will be attached to this PaymentIntent</p>
<p><a name="clientSecret"></a>
<code>clientSecret</code> - client secret from the PaymentIntent that is to be confirmed</p>
<p><a name="returnUrl"></a>
<code>returnUrl</code> - the URL the customer should be redirected to after the authorization
process</p>
<p><a name="savePaymentMethod"></a>
<code>savePaymentMethod</code> - Set to <code>true</code> to save this PaymentIntent’s source to the
associated Customer, if the source is not already attached.
This parameter only applies to the source passed in the same request
or the current source attached to the PaymentIntent and must be
specified again if a new source is added.</p>
<p><a name="shipping"></a>
<code>shipping</code> - Optional. See <a href="-shipping/index.html">Shipping</a>.</p>
</BODY>
</HTML>
